package com.qin.mall.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Leisure
 * create 2022 2022/11/5 15:27
 **/
@Configuration
@MapperScan({"com.qin.mall.mapper","com.qin.mall.dao"})
public class MyBatisPlusConfig {
    /**
     * mybatis-plus分页插件
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();

    }
}